package edu.iyte.ceng431.hw2.pos.view;

import java.util.ArrayList;
import javax.swing.*;
import javax.swing.event.*;
import edu.iyte.ceng431.hw2.pos.model.SaleLineItem;;

public class SaleListModel implements ListModel {
  private ArrayList<SaleLineItem> collection;
  
  public SaleListModel(ArrayList<SaleLineItem> collection) {
    this.collection = collection;
  }

  public Object getElementAt(int index) {
    return(collection.get(index));
  }

  public int getSize() {
    return(collection.size());
  }

  public void addListDataListener(ListDataListener l) {}

  public void removeListDataListener(ListDataListener l) {}
}
